#!/bin/bash
echo "换源阿里云"
rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum makecache

echo "安装常用软件"
yum install -y vim wget nettools 

echo "关闭防火墙"
systemctl stop firewalld
systemctl disable firewalld
echo "关闭selinux"
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g'  /etc/selinux/config
setenforce 0